#ifndef __CACHEMANAGER_HPP__
#define __CACHEMANAGER_HPP__

#include <string>
#include <vector>

using std::string;
using std::vector;

class LRUCache;
class Cache;

//缓存管理类
class CacheManager
{
public:
    CacheManager() {}
    ~CacheManager() {}

    void initCache(size_t capacity,const string& filename);//从磁盘中读取缓存
    LRUCache& getCache(size_t idx);//获取某个缓存
    void periodicUpdateCaches();//定时更新所有缓存

private:
    vector<Cache> _cacheList;//缓存数量与线程个数一直

};


#endif
